package com.xxx.seckill.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xxx.seckill.pojo.TGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: xxx
 * @Date: 2023/1/4 19:58
 * @Description: 商品秒杀返回对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsVo extends TGoods {

    /**
     * 秒杀价
     */
    @TableField("seckill_price")
    private BigDecimal seckillPrice;

    /**
     * 库存数量
     */
    @TableField("stock_count")
    private Integer stockCount;
    
    /**
     * 秒杀开始时间
     */
    @TableField("start_date")
    private Date startDate;

    /**
     * 秒杀结束时间
     */
    @TableField("end_date")
    private Date endDate;
    
}
